package com.ruoyi.business.dbopt.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
public class OptCommand implements Serializable {
    public static final String PASS = "abcd4321,,";

    /** 操作数据库 */
    private String dbName;

    /** 备份文件发送到邮箱 */
    private String mailTo;

    /** 操作 1.备份 2.还原 */
    private int opt;

    /** 还原时的上传文件 */
    @JSONField(serialize = false, deserialize = false)
    private MultipartFile file;

    /** 还原时的文件ID */
    private String fileId;

    /** 防止外部非法调用 固定密码*/
    private String password;

}
